<p>
  <b>Username:</b>
  <%=h @user.username %>
</p>

<p>
  <b>Password:</b>
  <%=h @user.password %>
</p>

<p>
  <b>Email:</b>
  <%=h @user.email %>
</p>

<p>
  <b>Joined:</b>
  <%=h @user.joined %>
</p>

<p>
  <b>Approved:</b>
  <%=h @user.approved %>
</p>

<p>
  <b>Role:</b>
  <%=h @user.role %>
</p>

<h2>List of available features:</h2>
<% @user.accesses.each do |c| %>
        <p>
          <b>Feature:</b>
          <%=h c.feature %>
        </p>

        
<% end %>

<%= link_to 'Edit', edit_user_path(@user) %> |
<%= link_to 'Back', users_path %> |
<%= link_to 'Manage Features', user_accesses_path(@user) %>

<br> <br> <br> <br>
<strong>
<%= link_to "Logout",:controller => "home", :action => "logout" %>
</strong>